/*
 * Copyright (C) 2009,2010,2011  Paulo Cesar Pereira de Andrade.
 *
 * This is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * Authors:
 *	Paulo Cesar Pereira de Andrade
 */

#ifndef _empcache_h
#define _empcache_h

#include "etypes.h"

/*
 * Types
 */
struct empcache {
    eobject_t	*entries;
    eint32_t	*indexes;
    eint32_t	 length;
    eint32_t	 offset;
};

/*
 * Prototypes
 */
extern void
eget_mpz(empz_t _z, eint32_t offset);

extern void
eget_mpq(empq_t _q, eint32_t offset);

extern void
eget_mpr(empr_t _r, eint32_t offset);

extern void
eget_cqq(ecqq_t _qq, eint32_t offset);

extern void
eget_mpc(empc_t _c, eint32_t offset);

extern void
empcache_setup(void);

#endif /* _empcache_h */
